home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / text / misc / pcal_4_5.lha / pcal / Makefile < prev    next >
Makefile  |  1994-10-16  |  3KB  |  100 lines

  1. #
  2. # Makefile for Pcal v4.5 under UNIX
  3. #
  4. # v4.5: "make clean" leaves pcal intact but removes other by-products;
  5. #       "make clobber" blows everything away
  6. #
  7.  
  8. # Set the configuration variables below to taste.
  9.  
  10. CC    = /bin/cc
  11.  
  12. # PACK is for packing the man page.  Note that setting PACK to ":" will cause
  13. # no packing to be done; otherwise, choose "compress" or "pack" as your system
  14. # requires.
  15. PACK    = :
  16. # PACK    = compress
  17. # PACK    = pack
  18.  
  19. # directories for installing executable and man page(s)
  20. BINDIR    = /usr/local/bin
  21. MANDIR    = /usr/man/man1
  22. CATDIR    = /usr/man/cat1
  23.  
  24. OBJECTS = pcal.o exprpars.o moonphas.o pcalutil.o readfile.o writefil.o
  25.  
  26. # Site-specific defaults which may be overridden here (cf. pcallang.h);
  27. # uncomment the examples below and/or change them to your liking
  28.  
  29. # include Roman8 or ISO Latin1 8-bit character mappings by defining MAPFONTS
  30. # as ROMAN8 or LATIN1 respectively
  31. # D_MAPFONTS   = -DMAPFONTS=ROMAN8
  32.  
  33. # redefine title, date, and notes font/pointsize (-t, -d, -n)
  34. # D_TITLEFONT = '-DTITLEFONT="Helvetica-Bold/48"'
  35. # D_DATEFONT  = '-DDATEFONT="Helvetica-Bold/28"'
  36. # D_NOTESFONT = '-DNOTESFONT="Helvetica/8"'
  37.  
  38. # redefine shading (dates/fillboxes)
  39. # D_SHADING = '-DSHADING="0.6/0.99"'
  40.  
  41. # specify American (USA_DATES) or European (EUR_DATES) date parsing (-A, -E)
  42. # D_DATE_STYLE = -DDATE_STYLE=USA_DATES
  43.  
  44. # specify first (leftmost) weekday on calendar (-F)
  45. # D_FIRST_DAY  = -DFIRST_DAY=SUN
  46.  
  47. # specify default time zone for moon phases: "0" = GMT; "5" = Boston (-z)
  48. # D_TIMEZONE   = '-DTIMEZONE="5 [Boston]"'
  49.  
  50. # generate EPS-compatible PostScript (-DEPS)
  51. # D_EPS           = -DEPS
  52.  
  53. COPTS = $(D_MAPFONTS) $(D_TITLEFONT) $(D_DATEFONT) $(D_NOTESFONT) \
  54.         $(D_SHADING) $(D_DATE_STYLE) $(D_FIRST_DAY) $(D_TIMEZONE) \
  55.     $(D_EPS)
  56.  
  57. pcal:    $(OBJECTS)
  58.     $(CC) $(LDFLAGS) -o pcal $(OBJECTS) -lm
  59.     @ echo "Build of pcal complete"
  60.  
  61. exprpars.o:    exprpars.c pcaldefs.h
  62.     $(CC) $(CFLAGS) $(COPTS) -c exprpars.c
  63.  
  64. moonphas.o:    moonphas.c pcaldefs.h pcalglob.h protos.h
  65.     $(CC) $(CFLAGS) $(COPTS) -c moonphas.c
  66.  
  67. pcal.o:        pcal.c pcaldefs.h pcalglob.h pcallang.h protos.h
  68.     $(CC) $(CFLAGS) $(COPTS) -c pcal.c
  69.  
  70. pcalutil.o:    pcalutil.c pcaldefs.h pcalglob.h pcallang.h protos.h
  71.     $(CC) $(CFLAGS) $(COPTS) -c pcalutil.c
  72.  
  73. readfile.o:    readfile.c pcaldefs.h pcalglob.h pcallang.h protos.h
  74.     $(CC) $(CFLAGS) $(COPTS) -c readfile.c
  75.  
  76. writefil.o:    writefil.c pcaldefs.h pcalglob.h pcallang.h protos.h pcalinit.h
  77.     $(CC) $(CFLAGS) $(COPTS) -c writefil.c
  78.  
  79. pcalinit: pcalinit.c
  80.     $(CC) $(CFLAGS) $(LDFLAGS) $(COPTS) -o pcalinit pcalinit.c
  81.  
  82. pcalinit.h: pcalinit pcalinit.ps
  83.     ./pcalinit pcalinit.ps pcalinit.h header
  84.  
  85. clean:
  86.     rm -f $(OBJECTS) pcalinit pcalinit.h pcal.cat
  87.  
  88. clobber:
  89.     rm -f $(OBJECTS) pcal pcalinit pcalinit.h pcal.cat
  90.  
  91. man:    pcal.man
  92.     nroff -man pcal.man > pcal.cat
  93.  
  94. install:    pcal man
  95.     cp pcal $(BINDIR)
  96.     cp pcal.man $(MANDIR)/pcal.1
  97.     $(PACK) $(MANDIR)/pcal.1
  98.     cp pcal.cat $(CATDIR)/pcal.1
  99.     $(PACK) $(CATDIR)/pcal.1
  100.